import React from 'react'
import classNames from 'classnames'
import {Slot} from '@/components/Slot/index'

export default (props) => {
	let {className, children} = props
	return (
		<div className={classNames("panel", className)}>
			<Slot name="header" className='panel-header' content={children}>
				这是默认的头部
			</Slot>
			<Slot className='panel-body' content={children}/>
			<Slot name="footer" className='panel-footer' content={children}/>
		</div>)
}
